import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

public class LeituraDeArquivo {

	public static void main(String[] args) throws FileNotFoundException {

		FileOutputStream arquivo = new FileOutputStream("saida.txt");
		PrintStream printStream = new PrintStream(arquivo);

		printStream.print("Primeira linha!!! \n");
		printStream.print("Segunda linha!!! \n");
		printStream.println("Terceira linha!!!! ");
	}

}
